$OpenBSD: patch-configure_in,v 1.2 2006/12/18 17:05:49 espie Exp $
--- configure.in.orig	Sun Nov 26 12:03:12 2006
+++ configure.in	Mon Dec 18 17:10:53 2006
@@ -169,7 +169,7 @@ KDE_CHECK_HEADER(libmng.h,
         [
         AC_DEFINE_UNQUOTED(HAVE_LIBMNG, 1, [Define if you have libmng])
         LIBMNG="-lmng $LIBZ -lm"
-        ], [], $LIBZ -lm)
+        ], [], -llcms -ljpeg $LIBZ -lm)
     ])
 AC_SUBST(LIBMNG)
 if test -z "$LIBMNG"; then
